<?php
/**
 * @author shuang
 * @date 2017-1-3 17:22:30
 */
?>
<div class="formbody">
    <div class="formtitle"><span>基本信息</span></div>
    <div class="toolsli">
        <ul class="toollist">
            <li><h5>账号 ：<?php echo $user->userprofile->username; ?></h5></li>
            <li><h5>手机号码 ：<?php echo $user->userprofile->phone; ?></h5></li>
            <li><h5>真实姓名 ：<?php echo $user->userprofile->truename; ?></h5></li>
            <li><h5>邀请人 ：<?php echo $user->userprofile->invite_code == common\components\MTools::getYiiParams("sys_invite_code") ? "平台" : ($user->userprofile->userinvite ? $user->userprofile->userinvite->username : "已不存在"); ?></h5></li>
            <li><h5>支付宝账号  ：<?php echo $user->userprofile->alipay; ?></h5></li>
            <li><h5>QQ账号 ：<?php echo $user->userprofile->qq; ?></h5></li>
            <li><h5>注册时间 ：<?php echo Yii::$app->formatter->asDatetime($user->created_at); ?></h5></li>
        </ul>
    </div>
    <div class="formtitle"><span>账户详情</span></div>
    <div class="toolsli">
        <ul class="toollist">
            <li><h5>账户金额：<?php echo Yii::$app->formatter->asDecimal($user->useraccount ? $user->useraccount->amount : 0); ?></h5></li>
            <li><h5>返利金额：<?php echo Yii::$app->formatter->asDecimal($user->useraccount ? $user->useraccount->rebate_amount : 0); ?></h5></li>
        </ul>
    </div>
    <div class="formtitle"><span>发布任务情况</span></div>
    <div class="toolsli">
        <ul class="toollist">
            <li><h5>任务总量：<?php echo yii\helpers\ArrayHelper::getValue($user->getTaskCount($user->id),"num",0);?></h5></li>
        </ul>
    </div>
</div>